package com.atguigu.product.service;

import com.atguigu.param.ProductHotParam;
import com.atguigu.param.ProductIdsParam;
import com.atguigu.param.ProductSaveParam;
import com.atguigu.param.ProductSearchParam;
import com.atguigu.pojo.Product;
import com.atguigu.to.OrderToProduct;
import com.atguigu.utils.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface ProductService extends IService<Product> {


    R promo(String categoryName);


    R hots(ProductHotParam productHotParam);


    R clist();

 
    R byCategory(ProductIdsParam productIdsParam);


    R detail(Integer productID);


    R pictures(Integer productID);


    List<Product> allList();

    R search(ProductSearchParam productSearchParam);


    R ids(List<Integer> productIds);

    List<Product> cartList(List<Integer> productIds);


    Long adminCount(Integer categoryId);

    R adminSave(ProductSaveParam productSaveParam);

 
    R adminUpdate(Product product);

  
    R adminRemove(Integer productId);
}
